package com.ruoyi.blogs.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysUser;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 资源对象 bs_resource
 * 
 * @author ruoyi
 * @date 2022-11-23
 */
@ApiModel(value = "BsResource", description = "资源实体")
public class BsResource extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty("id")
    private String id;

    /** 资源标题 */
    @ApiModelProperty("资源标题")
    @Excel(name = "资源标题")
    private String title;

    /** 资源描述 */
    @ApiModelProperty("资源描述")
    @Excel(name = "资源描述")
    private String description;

    /** 资源大小 */
    @ApiModelProperty("资源大小")
    @Excel(name = "资源大小")
    private Long contentLength;

    /** 资源url */
    @ApiModelProperty("资源url")
    @Excel(name = "资源url")
    private String url;

    /** 是否显示 */
    @ApiModelProperty("是否显示")
    @Excel(name = "是否显示")
    private Integer visible;

    /** 排序 */
    /** 是否显示 */
    @ApiModelProperty("排序")
    @Excel(name = "排序")
    private Long sort;

    /** 格式 */
    @ApiModelProperty("格式")
    @Excel(name = "格式")
    private String format;

    /** 上传用户 */
    @ApiModelProperty("上传用户名")
    @Excel(name = "上传用户")
    private String uploadUser;

    /** 上传用户id */
    @ApiModelProperty("上传用户id")
    @Excel(name = "上传用户id")
    private Long userId;

    /** 方向id */
    @ApiModelProperty("方向id")
    @Excel(name = "方向id")
    private Long directionId;

    /** 是否热门 */
    @ApiModelProperty("是否热门")
    @Excel(name = "是否热门")
    private Integer isHot;

    /** 用户信息 */
    @ApiModelProperty("用户信息")
    private SysUser user;

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setContentLength(Long contentLength) 
    {
        this.contentLength = contentLength;
    }

    public Long getContentLength() 
    {
        return contentLength;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setVisible(Integer visible) 
    {
        this.visible = visible;
    }

    public Integer getVisible() 
    {
        return visible;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setFormat(String format) 
    {
        this.format = format;
    }

    public String getFormat() 
    {
        return format;
    }
    public void setUploadUser(String uploadUser) 
    {
        this.uploadUser = uploadUser;
    }

    public String getUploadUser() 
    {
        return uploadUser;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDirectionId(Long directionId) 
    {
        this.directionId = directionId;
    }

    public Long getDirectionId() 
    {
        return directionId;
    }
    public void setIsHot(Integer isHot) 
    {
        this.isHot = isHot;
    }

    public Integer getIsHot() 
    {
        return isHot;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("contentLength", getContentLength())
            .append("url", getUrl())
            .append("visible", getVisible())
            .append("sort", getSort())
            .append("format", getFormat())
            .append("uploadUser", getUploadUser())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .append("directionId", getDirectionId())
            .append("isHot", getIsHot())
            .toString();
    }
}